package io.renren.modules.vastFinance.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import io.renren.modules.vastFinance.entity.FinanceEntity;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ExcelFinanceListener extends AnalysisEventListener<FinanceEntity> {
    @Override
    public void invoke(FinanceEntity financeEntity, AnalysisContext analysisContext) {
       System.err.println(financeEntity.toString());
       //调用mapper插入数据到数据库
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
